<?php
/**
 * Created by PhpStorm.
 * User: hemingguang
 * Date: 2015/8/4
 * Time: 16:10
 */

class openapi_api_function_v1_storemanger extends openapi_api_function_abstract implements openapi_api_function_interface{

    public function storegrade($params,&$code,&$sub_msg){
        $storegrade = kernel::service('business.api_verify_storegrade')->getgrades();
        if($storegrade){
            return $this->apiData(true,$storegrade);
        }else{
            return $this->apiData(false,array('msg'=>$this->app->_('获取经销商层级失败')));
        }
    }

}
